//
//  GameLayer.cpp
//  iFruitGame
//
//  Created by sxz on 2014/11/17.
//
//

#include "GameLayer.h"

Scene* GameLayer::createScene()
{
    auto scene = Scene::create();
    auto layer  = GameLayer::create();
    scene->addChild(layer);
    
    return scene;
}

bool GameLayer::init()
{
    if ( !Layer::init() )
    {
        return false;
    }
    
    CCLOG(" >>>>> Enter ... GameLayer ...");
   
    // add the background to the screen
    auto background = fruitCore->init(this);
    addChild(background);
    
    fruitCore->initFruit();
    
    return true;
}

void GameLayer::initTime()
{

}

void GameLayer::pause(Ref* pSender)
{

    log("do some thing in here....");
}

void GameLayer::playGame()
{

}

void GameLayer::musicControll()
{
    
}

void GameLayer::soundControll()
{

}


void GameLayer::menuCloseCallback(Ref* pSender)
{
    
}


